package com.spark.lola.entity.warehouse;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.common.constant.CommonConstant;
import com.spark.lola.support.mybatis.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengyejun
 * @since 2020-06-10
 */
@TableName("warehouse_store_supplier")
@ApiModel(value="StoreSupplier对象", description="")
public class StoreSupplier extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;
    public StoreSupplier(){}
    public StoreSupplier(Long storeId,String no,String name){
        this.storeId = storeId;
        this.no =no;
        this.name = name;
    }
    @ApiModelProperty(value = "编码")
    private String no;

    @ApiModelProperty(value = "仓库ID")
    private Long storeId;

    @ApiModelProperty(value = "仓库名称")
    @TableField(exist = false)
    private String storeName;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "状态")
    private String used= CommonConstant.Y;

    @ApiModelProperty(value = "供货金额")
    private BigDecimal orderSales = BigDecimal.ZERO;

    @ApiModelProperty(value = "已付货款")
    private BigDecimal orderPayment = BigDecimal.ZERO;

    @ApiModelProperty(value = "供货量")
    private BigDecimal orderWeight = BigDecimal.ZERO;

    @ApiModelProperty(value = "供货次数")
    private Integer orderCount = 0;

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public BigDecimal getOrderPayment() {
        return orderPayment;
    }

    public void setOrderPayment(BigDecimal orderPayment) {
        this.orderPayment = orderPayment;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    
    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String getUsed() {
        return used;
    }

    public void setUsed(String used) {
        this.used = used;
    }
        
    public BigDecimal getOrderSales() {
        return orderSales;
    }

    public void setOrderSales(BigDecimal orderSales) {
        this.orderSales = orderSales;
    }
    
    public BigDecimal getOrderWeight() {
        return orderWeight;
    }

    public void setOrderWeight(BigDecimal orderWeight) {
        this.orderWeight = orderWeight;
    }
    
    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    @Override
    public String toString() {
        return "StoreSupplier{" +
            "no=" + no +
            ", storeId=" + storeId +
            ", name=" + name +
            ", used=" + used +
                ", orderSales=" + orderSales +
            ", orderWeight=" + orderWeight +
            ", orderCount=" + orderCount +
        "}";
    }
}
